
/*************************************************************/
/*     dlg_about.cpp      CHAOXED's About Dialog (Win32)     */
/*                        By: Josh Fiorio                    */
/*************************************************************/

#include "dlg_about.h"

BOOL CALLBACK ABOUT_DLG_Func(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
{
	switch (message)
	{
	case WM_INITDIALOG:
		SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM) LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(MAIN_ICON)));
		return true;
	case WM_CLOSE:
		EndDialog(hwnd, 0);
		break;
	case WM_COMMAND:
		if (LOWORD(wparam) == IDOK)
			EndDialog(hwnd, 0);
		break;
	default:
		return false;
	}	//end switch

	return true;
}	//end of func.
